3.5.71 \(\int \frac {g+h x}{\sqrt {a+b \log (c (d (e+f x)^p)^q)}} \, dx\) [471]

Optimal. Leaf size=229 \[ \frac {e^{-\frac {a}{b p q}} (f g-e h) \sqrt {\pi } (e+f x) \left (c \left (d (e+f x)^p\right )^q\right )^{-\frac {1}{p q}} \text {erfi}\left (\frac {\sqrt {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}}{\sqrt {b} \sqrt {p} \sqrt {q}}\right )}{\sqrt {b} f^2 \sqrt {p} \sqrt {q}}+\frac {e^{-\frac {2 a}{b p q}} h \sqrt {\frac {\pi }{2}} (e+f x)^2 \left (c \left (d (e+f x)^p\right )^q\right )^{-\frac {2}{p q}} \text {erfi}\left (\frac {\sqrt {2} \sqrt {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}}{\sqrt {b} \sqrt {p} \sqrt {q}}\right )}{\sqrt {b} f^2 \sqrt {p} \sqrt {q}} \]

[Out]

1/2*h*(f*x+e)^2*erfi(2^(1/2)*(a+b*ln(c*(d*(f*x+e)^p)^q))^(1/2)/b^(1/2)/p^(1/2)/q^(1/2))*2^(1/2)*Pi^(1/2)/exp(2
*a/b/p/q)/f^2/((c*(d*(f*x+e)^p)^q)^(2/p/q))/b^(1/2)/p^(1/2)/q^(1/2)+(-e*h+f*g)*(f*x+e)*erfi((a+b*ln(c*(d*(f*x+
e)^p)^q))^(1/2)/b^(1/2)/p^(1/2)/q^(1/2))*Pi^(1/2)/exp(a/b/p/q)/f^2/((c*(d*(f*x+e)^p)^q)^(1/p/q))/b^(1/2)/p^(1/
2)/q^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.49, antiderivative size = 229, normalized size of antiderivative = 1.00, number of steps used = 11, number of rules used = 8, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {2448, 2436, 2337, 2211, 2235, 2437, 2347, 2495} \begin {gather*} \frac {\sqrt {\pi } (e+f x) e^{-\frac {a}{b p q}} (f g-e h) \left (c \left (d (e+f x)^p\right )^q\right )^{-\frac {1}{p q}} \text {Erfi}\left (\frac {\sqrt {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}}{\sqrt {b} \sqrt {p} \sqrt {q}}\right )}{\sqrt {b} f^2 \sqrt {p} \sqrt {q}}+\frac {\sqrt {\frac {\pi }{2}} h (e+f x)^2 e^{-\frac {2 a}{b p q}} \left (c \left (d (e+f x)^p\right )^q\right )^{-\frac {2}{p q}} \text {Erfi}\left (\frac {\sqrt {2} \sqrt {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}}{\sqrt {b} \sqrt {p} \sqrt {q}}\right )}{\sqrt {b} f^2 \sqrt {p} \sqrt {q}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(g + h*x)/Sqrt[a + b*Log[c*(d*(e + f*x)^p)^q]],x]

[Out]

((f*g - e*h)*Sqrt[Pi]*(e + f*x)*Erfi[Sqrt[a + b*Log[c*(d*(e + f*x)^p)^q]]/(Sqrt[b]*Sqrt[p]*Sqrt[q])])/(Sqrt[b]
*E^(a/(b*p*q))*f^2*Sqrt[p]*Sqrt[q]*(c*(d*(e + f*x)^p)^q)^(1/(p*q))) + (h*Sqrt[Pi/2]*(e + f*x)^2*Erfi[(Sqrt[2]*
Sqrt[a + b*Log[c*(d*(e + f*x)^p)^q]])/(Sqrt[b]*Sqrt[p]*Sqrt[q])])/(Sqrt[b]*E^((2*a)/(b*p*q))*f^2*Sqrt[p]*Sqrt[
q]*(c*(d*(e + f*x)^p)^q)^(2/(p*q)))

Rule 2211

Int[(F_)^((g_.)*((e_.) + (f_.)*(x_)))/Sqrt[(c_.) + (d_.)*(x_)], x_Symbol] :> Dist[2/d, Subst[Int[F^(g*(e - c*(
f/d)) + f*g*(x^2/d)), x], x, Sqrt[c + d*x]], x] /; FreeQ[{F, c, d, e, f, g}, x] &&  !TrueQ[$UseGamma]

Rule 2235

Int[(F_)^((a_.) + (b_.)*((c_.) + (d_.)*(x_))^2), x_Symbol] :> Simp[F^a*Sqrt[Pi]*(Erfi[(c + d*x)*Rt[b*Log[F], 2
]]/(2*d*Rt[b*Log[F], 2])), x] /; FreeQ[{F, a, b, c, d}, x] && PosQ[b]

Rule 2337

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_), x_Symbol] :> Dist[x/(n*(c*x^n)^(1/n)), Subst[Int[E^(x/n)*(a +
b*x)^p, x], x, Log[c*x^n]], x] /; FreeQ[{a, b, c, n, p}, x]

Rule 2347

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_)*((d_.)*(x_))^(m_.), x_Symbol] :> Dist[(d*x)^(m + 1)/(d*n*(c*x^n
)^((m + 1)/n)), Subst[Int[E^(((m + 1)/n)*x)*(a + b*x)^p, x], x, Log[c*x^n]], x] /; FreeQ[{a, b, c, d, m, n, p}
, x]

Rule 2436

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.), x_Symbol] :> Dist[1/e, Subst[Int[(a + b*Log[c*
x^n])^p, x], x, d + e*x], x] /; FreeQ[{a, b, c, d, e, n, p}, x]

Rule 2437

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((f_) + (g_.)*(x_))^(q_.), x_Symbol] :> Dist[1/
e, Subst[Int[(f*(x/d))^q*(a + b*Log[c*x^n])^p, x], x, d + e*x], x] /; FreeQ[{a, b, c, d, e, f, g, n, p, q}, x]
 && EqQ[e*f - d*g, 0]

Rule 2448

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_)*((f_.) + (g_.)*(x_))^(q_.), x_Symbol] :> Int[Exp
andIntegrand[(f + g*x)^q*(a + b*Log[c*(d + e*x)^n])^p, x], x] /; FreeQ[{a, b, c, d, e, f, g, n, p}, x] && NeQ[
e*f - d*g, 0] && IGtQ[q, 0]

Rule 2495

Int[((a_.) + Log[(c_.)*((d_.)*((e_.) + (f_.)*(x_))^(m_.))^(n_)]*(b_.))^(p_.)*(u_.), x_Symbol] :> Subst[Int[u*(
a + b*Log[c*d^n*(e + f*x)^(m*n)])^p, x], c*d^n*(e + f*x)^(m*n), c*(d*(e + f*x)^m)^n] /; FreeQ[{a, b, c, d, e,
f, m, n, p}, x] &&  !IntegerQ[n] &&  !(EqQ[d, 1] && EqQ[m, 1]) && IntegralFreeQ[IntHide[u*(a + b*Log[c*d^n*(e
+ f*x)^(m*n)])^p, x]]

Rubi steps

\begin {align*} \int \frac {g+h x}{\sqrt {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}} \, dx &=\text {Subst}\left (\int \frac {g+h x}{\sqrt {a+b \log \left (c d^q (e+f x)^{p q}\right )}} \, dx,c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\text {Subst}\left (\int \left (\frac {f g-e h}{f \sqrt {a+b \log \left (c d^q (e+f x)^{p q}\right )}}+\frac {h (e+f x)}{f \sqrt {a+b \log \left (c d^q (e+f x)^{p q}\right )}}\right ) \, dx,c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\text {Subst}\left (\frac {h \int \frac {e+f x}{\sqrt {a+b \log \left (c d^q (e+f x)^{p q}\right )}} \, dx}{f},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\text {Subst}\left (\frac {(f g-e h) \int \frac {1}{\sqrt {a+b \log \left (c d^q (e+f x)^{p q}\right )}} \, dx}{f},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\text {Subst}\left (\frac {h \text {Subst}\left (\int \frac {x}{\sqrt {a+b \log \left (c d^q x^{p q}\right )}} \, dx,x,e+f x\right )}{f^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\text {Subst}\left (\frac {(f g-e h) \text {Subst}\left (\int \frac {1}{\sqrt {a+b \log \left (c d^q x^{p q}\right )}} \, dx,x,e+f x\right )}{f^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\text {Subst}\left (\frac {\left (h (e+f x)^2 \left (c d^q (e+f x)^{p q}\right )^{-\frac {2}{p q}}\right ) \text {Subst}\left (\int \frac {e^{\frac {2 x}{p q}}}{\sqrt {a+b x}} \, dx,x,\log \left (c d^q (e+f x)^{p q}\right )\right )}{f^2 p q},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\text {Subst}\left (\frac {\left ((f g-e h) (e+f x) \left (c d^q (e+f x)^{p q}\right )^{-\frac {1}{p q}}\right ) \text {Subst}\left (\int \frac {e^{\frac {x}{p q}}}{\sqrt {a+b x}} \, dx,x,\log \left (c d^q (e+f x)^{p q}\right )\right )}{f^2 p q},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\text {Subst}\left (\frac {\left (2 h (e+f x)^2 \left (c d^q (e+f x)^{p q}\right )^{-\frac {2}{p q}}\right ) \text {Subst}\left (\int e^{-\frac {2 a}{b p q}+\frac {2 x^2}{b p q}} \, dx,x,\sqrt {a+b \log \left (c d^q (e+f x)^{p q}\right )}\right )}{b f^2 p q},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\text {Subst}\left (\frac {\left (2 (f g-e h) (e+f x) \left (c d^q (e+f x)^{p q}\right )^{-\frac {1}{p q}}\right ) \text {Subst}\left (\int e^{-\frac {a}{b p q}+\frac {x^2}{b p q}} \, dx,x,\sqrt {a+b \log \left (c d^q (e+f x)^{p q}\right )}\right )}{b f^2 p q},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac {e^{-\frac {a}{b p q}} (f g-e h) \sqrt {\pi } (e+f x) \left (c \left (d (e+f x)^p\right )^q\right )^{-\frac {1}{p q}} \text {erfi}\left (\frac {\sqrt {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}}{\sqrt {b} \sqrt {p} \sqrt {q}}\right )}{\sqrt {b} f^2 \sqrt {p} \sqrt {q}}+\frac {e^{-\frac {2 a}{b p q}} h \sqrt {\frac {\pi }{2}} (e+f x)^2 \left (c \left (d (e+f x)^p\right )^q\right )^{-\frac {2}{p q}} \text {erfi}\left (\frac {\sqrt {2} \sqrt {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}}{\sqrt {b} \sqrt {p} \sqrt {q}}\right )}{\sqrt {b} f^2 \sqrt {p} \sqrt {q}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.13, size = 208, normalized size = 0.91 \begin {gather*} \frac {e^{-\frac {2 a}{b p q}} \sqrt {\pi } (e+f x) \left (c \left (d (e+f x)^p\right )^q\right )^{-\frac {2}{p q}} \left (2 e^{\frac {a}{b p q}} (f g-e h) \left (c \left (d (e+f x)^p\right )^q\right )^{\frac {1}{p q}} \text {erfi}\left (\frac {\sqrt {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}}{\sqrt {b} \sqrt {p} \sqrt {q}}\right )+\sqrt {2} h (e+f x) \text {erfi}\left (\frac {\sqrt {2} \sqrt {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}}{\sqrt {b} \sqrt {p} \sqrt {q}}\right )\right )}{2 \sqrt {b} f^2 \sqrt {p} \sqrt {q}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(g + h*x)/Sqrt[a + b*Log[c*(d*(e + f*x)^p)^q]],x]

[Out]

(Sqrt[Pi]*(e + f*x)*(2*E^(a/(b*p*q))*(f*g - e*h)*(c*(d*(e + f*x)^p)^q)^(1/(p*q))*Erfi[Sqrt[a + b*Log[c*(d*(e +
 f*x)^p)^q]]/(Sqrt[b]*Sqrt[p]*Sqrt[q])] + Sqrt[2]*h*(e + f*x)*Erfi[(Sqrt[2]*Sqrt[a + b*Log[c*(d*(e + f*x)^p)^q
]])/(Sqrt[b]*Sqrt[p]*Sqrt[q])]))/(2*Sqrt[b]*E^((2*a)/(b*p*q))*f^2*Sqrt[p]*Sqrt[q]*(c*(d*(e + f*x)^p)^q)^(2/(p*
q)))

________________________________________________________________________________________

Maple [F]
time = 0.05, size = 0, normalized size = 0.00 \[\int \frac {h x +g}{\sqrt {a +b \ln \left (c \left (d \left (f x +e \right )^{p}\right )^{q}\right )}}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((h*x+g)/(a+b*ln(c*(d*(f*x+e)^p)^q))^(1/2),x)

[Out]

int((h*x+g)/(a+b*ln(c*(d*(f*x+e)^p)^q))^(1/2),x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((h*x+g)/(a+b*log(c*(d*(f*x+e)^p)^q))^(1/2),x, algorithm="maxima")

[Out]

integrate((h*x + g)/sqrt(b*log(((f*x + e)^p*d)^q*c) + a), x)

________________________________________________________________________________________

Fricas [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((h*x+g)/(a+b*log(c*(d*(f*x+e)^p)^q))^(1/2),x, algorithm="fricas")

[Out]

Exception raised: TypeError >>  Error detected within library code:   integrate: implementation incomplete (co
nstant residues)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {g + h x}{\sqrt {a + b \log {\left (c \left (d \left (e + f x\right )^{p}\right )^{q} \right )}}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((h*x+g)/(a+b*ln(c*(d*(f*x+e)**p)**q))**(1/2),x)

[Out]

Integral((g + h*x)/sqrt(a + b*log(c*(d*(e + f*x)**p)**q)), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((h*x+g)/(a+b*log(c*(d*(f*x+e)^p)^q))^(1/2),x, algorithm="giac")

[Out]

integrate((h*x + g)/sqrt(b*log(((f*x + e)^p*d)^q*c) + a), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {g+h\,x}{\sqrt {a+b\,\ln \left (c\,{\left (d\,{\left (e+f\,x\right )}^p\right )}^q\right )}} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((g + h*x)/(a + b*log(c*(d*(e + f*x)^p)^q))^(1/2),x)

[Out]

int((g + h*x)/(a + b*log(c*(d*(e + f*x)^p)^q))^(1/2), x)

________________________________________________________________________________________